package com.stu.service;

import com.stu.commons.ServerResponce;
import com.stu.pojo.Coupon;

import java.util.List;
import java.util.Map;

// 作用：定义优惠券相关的业务接口
public interface ICouponService {
    public Coupon getById(Integer couponId);
    public ServerResponce insertCoupon(Coupon coupon);
    public Map<String, Object> selectByIdCoupon(Integer couponId);
    public ServerResponce reduceCoupon(Integer couponId,Integer count);
    public List<Coupon> getAll();
    public Integer updataCoupon(Coupon coupon);
}
